package cn.com.nou.common.upload;

import com.github.tobato.fastdfs.domain.fdfs.MetaData;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Set;

public interface UploadClient {
    String uploadFile(MultipartFile file) throws IOException;
    List<String> uploadFiles(List<MultipartFile> files) throws IOException;

    String uploadFile(InputStream inputStream, long fileSize, String fileExtName, Set<MetaData> metaDataSet) throws IOException;

    void deleteFile(String filePath);
    
    public byte[] downloadFile(String fileUrl);
}
